package com.ln.asset.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ln.asset.core.pojo.Transformation;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qiaoyanru
 * @since 2022-04-27
 */
public interface TransformationService extends IService<Transformation> {

    //转移资产信息
    IPage<Transformation> selectList(Page<Transformation> pageParam);

    //删除转移信息
    void delTransfor(Integer id);

    //申请转移
    void applyTransfor(Transformation transformation);

    //转移资产详情
    Map<String, Object> selectDetails(@Param("id") Integer id);

    //资产转移审批通过
    void transforApproval(Integer status, Map<String, Object> transforDetails);

    //添加中间表
    void applyTransforZhong(Integer tId, List<Integer> list);
}
